<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 300px;
            height: 300px;
            background-color: pink;
            /*边框线*/
            border: 1px solid black;
            /*内边距*/
            padding: 20px;
            /*外边距*/
            margin: 30px;
            display: inline-block;
        }
    </style>
</head>
<body>
<div>
    内容电脑
</div>

<div>
    内容电脑
</div>
</body>
</html>